const { no, ok, ipv6ToV4, getClientIp } = require('../../utils/utlis');
const homeService = require('../../services/admin/homeService');

module.exports = {
	tabList: async (req, res, next) => {
		try {
			let obj = await homeService.tabList();
			res.send(ok(obj));
		} catch (error) {
			res.send(no(error));
		}
	},
	echart: async (req, res, next) => {
            
		try {
			let obj = await homeService.echart();
			res.send(ok(obj));
		} catch (error) {
			res.send(no(error));
		}
	}
};
